package com.lkd.service.impl;

import com.lkd.entity.Role;
import com.lkd.mapper.RoleMapper;
import com.lkd.service.RoleService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Z.lx
 * @Date: 2025/8/22 18:51
 * @Description:
 **/
@Service
@AllArgsConstructor
public class RoleServiceImpl implements RoleService {
    private final RoleMapper roleMapper;
    /**
    * @Description 获取所有角色
    * @Param []
    * @Date 2025/8/22 18:55
    **/
    public List<Role> list() {
        return roleMapper.listAll();
    }
}
